import easygui

import requests
import easygui

import easygui
fa = open('config.txt')
language = fa.read()
language = language.split(" ")
if language[2] == "en_US":
    link = input('[SYS]>>>Please input a web site !(Templete:http://www.santostang.com/)')
    headers = {'User-Agent': 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:9.1.6) Gecko/20091201 Firefox/3.5.6'}
    print(('[SYS]>>>Please Wait...The program is requests:' + link))

    req = requests.get(link,headers=headers)
    f = open("scripts.txt","w")
    f.write(req.text)
    f.close()
    easygui.msgbox("done!(Press OK to exit)")
if language[2] == "zh_CN":
    link = input('[SYS]>>>请输入网址')
    headers = {'User-Agent': 'Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:9.1.6) Gecko/20091201 Firefox/3.5.6'}
    print(('[SYS]>>>请稍后，正在请求:' + link))

    req = requests.get(link,headers=headers)
    f = open("scripts.txt","w")
    f.write(req.text)
    f.close()
    easygui.msgbox("完成!（点击OK退出程序）")